package com.wntms.gps.service.impl;

import java.util.List;

import com.wntms.gps.dao.FreightLineDao;
import com.wntms.gps.service.IFreightLineService;
import com.wntms.gps.pojo.FreightLine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 货运单路线Service业务层处理
 * 
 * @author group 4
 * @date 2022-11-22
 */
@Service
public class FreightLineServiceImpl implements IFreightLineService
{
    @Autowired
    private FreightLineDao freightLineDao;

    /**
     * 查询货运单路线
     * 
     * @param id 货运单路线主键
     * @return 货运单路线
     */
    @Override
    public FreightLine selectFreightLineById(Long id)
    {
        return freightLineDao.selectFreightLineById(id);
    }

    /**
     * 查询货运单路线列表
     * 
     * @param freightLine 货运单路线
     * @return 货运单路线
     */
    @Override
    public List<FreightLine> selectFreightLineList(FreightLine freightLine)
    {
        return freightLineDao.selectFreightLineList(freightLine);
    }

    /**
     * 新增货运单路线
     * 
     * @param freightLine 货运单路线
     * @return 结果
     */
    @Override
    public int insertFreightLine(FreightLine freightLine)
    {
        return freightLineDao.insertFreightLine(freightLine);
    }

    /**
     * 修改货运单路线
     * 
     * @param freightLine 货运单路线
     * @return 结果
     */
    @Override
    public int updateFreightLine(FreightLine freightLine)
    {
        return freightLineDao.updateFreightLine(freightLine);
    }

    /**
     * 批量删除货运单路线
     * 
     * @param ids 需要删除的货运单路线主键
     * @return 结果
     */
    @Override
    public int deleteFreightLineByIds(Long[] ids)
    {
        return freightLineDao.deleteFreightLineByIds(ids);
    }

    /**
     * 删除货运单路线信息
     * 
     * @param id 货运单路线主键
     * @return 结果
     */
    @Override
    public int deleteFreightLineById(Long id)
    {
        return freightLineDao.deleteFreightLineById(id);
    }
}
